#ifndef PROJECTFILEOPTIONSDLG_H
#define PROJECTFILEOPTIONSDLG_H

#include "scrollingdialog.h"

class ProjectFile;

class ProjectFileOptionsDlg : public wxScrollingDialog {
  public:
    ProjectFileOptionsDlg( wxWindow* parent, const wxString& fileName ,ProjectFile* pf);
    ~ProjectFileOptionsDlg();
    void OnReadOnlyCheck( wxCommandEvent& event );
    void OnCompilerCombo( wxCommandEvent& event );
    void OnUpdateUI( wxUpdateUIEvent& event );
    void EndModal( int retCode );
  private:
    void FillGeneralProperties();
    void FillCompilers();
    void UpdateBuildCommand();
    void SaveBuildCommandSelection();
    bool ToggleFileReadOnly( bool setReadOnly );
    ProjectFile* m_ProjectFile;
    wxString m_FileNameStr;
    wxFileName m_FileName;
    int xml_File_lock ;
    int m_LastBuildStageCompilerSel;
    DECLARE_EVENT_TABLE()
};

#endif
